package com.sanqi.weixin.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sanqi.common.annotation.Excel;
import com.sanqi.common.core.domain.BaseEntity;

/**
 * 微信应用对象 wx_app
 * 
 * @author duany
 * @date 2025-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("wx_app")
public class WxApp extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /** 应用名称 */
    @Excel(name = "应用名称")
    @TableField(value="app_name")
    private String appName;

    /** 应用编码 */
    @Excel(name = "应用编码")
    @TableField(value="app_code")
    private String appCode;

    /** 公司微信编码 */
    @Excel(name = "公司微信编码")
    @TableField(value="corpid")
    private String corpid;

    /** 第三方应用编码 */
    @Excel(name = "第三方应用编码")
    @TableField(value="agentid")
    private String agentid;

    /** 第三方应用secret */
    @Excel(name = "第三方应用secret")
    @TableField(value="secret")
    private String secret;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setAppName(String appName) 
    {
        this.appName = appName;
    }

    public String getAppName() 
    {
        return appName;
    }

    public void setAppCode(String appCode) 
    {
        this.appCode = appCode;
    }

    public String getAppCode() 
    {
        return appCode;
    }

    public void setCorpid(String corpid) 
    {
        this.corpid = corpid;
    }

    public String getCorpid() 
    {
        return corpid;
    }

    public void setAgentid(String agentid) 
    {
        this.agentid = agentid;
    }

    public String getAgentid() 
    {
        return agentid;
    }

    public void setSecret(String secret) 
    {
        this.secret = secret;
    }

    public String getSecret() 
    {
        return secret;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("appName", getAppName())
            .append("appCode", getAppCode())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("corpid", getCorpid())
            .append("agentid", getAgentid())
            .append("secret", getSecret())
            .toString();
    }
}
